package biz.impl;

import java.util.List;

import dao.WordchildDao;
import entity.Wordchild;
import biz.WordchildBiz;

public class WordchildBizImpl implements WordchildBiz {
	private WordchildDao wordchildDao;

	public WordchildDao getWordchildDao() {
		return wordchildDao;
	}

	public void setWordchildDao(WordchildDao wordchildDao) {
		this.wordchildDao = wordchildDao;
	}

	public List<Wordchild> findAll() {
		return wordchildDao.findAll();
	}

	public Wordchild findById(Integer id) {
		return wordchildDao.findById(id);
	}

	public int add(Wordchild wordchild) {
		return wordchildDao.add(wordchild);
	}

	public int delete(Wordchild wordchild) {
		return wordchildDao.delete(wordchild);
	}

	public int update(Wordchild wordchild) {
		return wordchildDao.update(wordchild);
	}

	public List<Wordchild> findByWordid(Integer id) {
		return wordchildDao.findByWordid(id);
	}

	public Wordchild findByName(String name) {
		return wordchildDao.findByName(name);
	}

	public Integer findMaxIndex(Integer id) {
		return wordchildDao.findMaxIndex(id);
	}
	
	
}
